package com.kapcb.secure.configuration.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <a>Title: ApiEncrypt </a>
 * <a>Author: kapcb <a>
 * <a>Description: 强制加密注解 <a>
 *
 * @author Kpacb
 * @version 1.0
 * @date 2024/5/4 10:04
 * @since 1.0
 */
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ApiEncrypt {

    /**
     * 响应加密忽略，默认不加密，为 true 时加密
     */
    boolean response() default false;

    /**
     * 请求加密忽略，默认不加密，为 true 时加密
     */
    boolean request() default false;

}
